package cn.net.isir.dao;

import cn.net.isir.core.BasicDao;
import cn.net.isir.entity.Permission;
import cn.net.isir.entity.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class PermissionDao extends BasicDao<Permission> {
    public List<Permission> selectPermissionListByUserId(User user) {
        return sqlSessionTemplate.selectList("selectPermissionListByUserId", user);
    }
}
